package com.smile.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 组织表相关实体类
 *
 * @author 宁海博
 * @Date 2025/6/6
 */
@TableName("smile_plus_organization")
@Data
@ToString
public class SmilePlusOrganization implements java.io.Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;

    /**
     * 组织id
     */
    @TableField(value = "organization_code")
    private String organizationCode;

    /**
     * 设备绑定码
     */
    @TableField(value = "device_binding_code")
    private String deviceBindingCode;

    /**
     * 组织名称
     */
    @TableField(value = "organization_name")
    private String organizationName;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 负责人
     */
    @TableField("charge_name")
    private String chargeName;

    /**
     * 状态
     */
    @TableField("status")
    private Boolean status;

    /**
     * 创建人
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("modify_time")
    private LocalDateTime modifyTime;

    /**
     * 删除状态
     */
    @TableField("delete_status")
    private Boolean deleteStatus;

    @TableField("parent_id")
    private Long parentId;

    @TableField("level")
    private Integer level;


}
